module.exports = {
  packagerConfig: {
    asar: false,
    icon: "icons/icon.ico",
  },
  rebuildConfig: {},
  makers: [
    {
      name: "@electron-forge/maker-squirrel",
      config: {
        icon: "icons/logo.ico",
        // The ICO file to use as the icon for the generated Setup.exe
        setupIcon: "icons/icon.ico",
      },
    },
    {
      name: "@electron-forge/maker-zip",
      platforms: ["darwin"],
    },
    {
      name: "@electron-forge/maker-deb",
      config: {},
    },
    {
      name: "@electron-forge/maker-rpm",
      config: {},
    },
  ],
  plugins: [
    {
      name: "@electron-forge/plugin-vite",
      config: {
        // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
        // If you are familiar with Vite configuration, it will look really familiar.
        build: [
          // {
          //   // `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
          //   entry: "src/main/index.js",
          //   config: "vite.main.config.mjs",
          // },
          // {
          //   entry: "src/preload/preload.js",
          //   config: "vite.preload.config.mjs",
          // },
        ],
        renderer: [
          {
            name: "main_window",
            config: "vite.renderer.config.mjs",
          },
        ],
      },
    },
  ],
};
